package com.ls.service;

import com.ls.utils.ResultData;
//import com.wechat.pay.java.service.payments.nativepay.model.PrepayResponse;
import com.wechat.pay.java.service.payments.app.model.PrepayResponse;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 微信支付 服务类
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
public interface IWeixinPayService {
    /*
     *预支付
     */
    ResultData advancePay(String orderNum , BigDecimal money, Integer productType);
    /*
     *支付结果异步回调
     */
    String getPayType(HttpServletRequest request);
    /*
     *统一查询支付接口
     */
    ResultData getPayStatus(String orderNum);

    /*
     *统一轮询查询支付接口
     */
    String getTaskPayStatus(String orderNum);
    /*
     *关闭订单
     */
    ResultData closeOrder(String orderNum);
    /*
     *退款
     */
    ResultData refundWeixin(String orderNum,BigDecimal money);
    /*
     *退款查询
     */
    Boolean refundQuery(String orderNum);
}
